package com.zdzx.service;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

import com.zdzx.common.result.Result;
import com.zdzx.common.result.ResultCode;
import com.zdzx.model.service.base.param.EditUser;
import com.zdzx.model.service.base.param.LoginInfo;
import com.zdzx.model.service.base.result.UserInfo;

public interface UserService {
	
	public Result<UserInfo> login(LoginInfo loginInfo, HttpServletRequest request);

	Result<String> refToken(String token);

	
	 Result<String> logout(String token);

	
	 Result<String> checkExpriToken(ResultCode code, String token) throws UnsupportedEncodingException ;

	
	boolean saveOrUpdate(EditUser entity);


}
